<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">

<head>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <title>奖惩管理</title>

    <link th:href="@{/js/jquery.js}" rel="stylesheet" />
    <script th:href="@{/css/bootstrap.min.css}"  ></script>
    <script th:href="@{/js/bootstrap.min.js}"  ></script>

    <link rel="stylesheet" type="text/css" href="../static/css/bootstrap.min.css"/>
    <script src="../static/js/jquery.js" type="text/javascript" charset="utf-8"></script>
    <script src="../static/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>


    <style type="text/css">
        #right{
		position: absolute;
		top: 70px;
		left:300px;
		width:1200px
	}
        table{

        }
        td{
            text-align: center;
        }
        .option{
            text-align: center;
        }
    </style>

</head>
<body>
<div th:replace="Top :: head"></div>
<div th:replace="Top :: left"></div>
<div id="right">
    <ul class="breadcrumb">
        <li><a href="/index">首页</a></li>
        <li><a href="">申请详情</a></li>
    </ul>
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>请假详情</h5>
            <div class="ibox-tools">
                <a class="collapse-link">
                    <i class="fa fa-chevron-up"></i>
                </a>
            </div>
        </div>
        <div class="ibox-content">
            <form id="formTag" action="/holiday/checkHoliday" method="POST" class="form-horizontal" enctype="multipart/form-data">

                <div class="form-group"><label class="col-sm-2 control-label">请假id：</label>
                    <div class="col-sm-10">
                        <input id="h_id" readonly="readonly" name="h_id" type="text" class="form-control" th:value="${holiday.h_id}"/>
                    </div>
                </div>
                <div class="form-group"><label class="col-sm-2 control-label">请假人id：</label>
                    <div class="col-sm-10">
                        <input id="u_id" readonly="readonly" name="u_id" type="text" class="form-control" th:value="${holiday.u_id}"/>
                    </div>
                </div>

                <div class="form-group"><label class="col-sm-2 control-label">请假人：</label>
                    <div class="col-sm-10">
                        <input id="u_nickname" readonly="readonly" name="u_nickname" type="text" class="form-control" th:value="${holiday.u_nickname}"/>
                    </div>
                </div>

                <div class="form-group"><label class="col-sm-2 control-label">请假天数：</label>
                    <div class="col-sm-10">
                        <input id="h_day" readonly="readonly" name="h_day" type="text" class="form-control" th:value="${holiday.h_day}"/>
                    </div>
                </div>

                <div class="form-group"><label class="col-sm-2 control-label">请假原因：</label>
                    <div class="col-sm-10">
                        <input id="h_reason" readonly="readonly" name="h_reason" type="text" class="form-control" th:value="${holiday.h_reason}"/>
                    </div>
                </div>

                <div class="form-group"><label class="col-sm-2 control-label">应扣工资：</label>
                    <div class="col-sm-10">
                        <input id="h_salary" readonly="readonly" name="h_salary" type="text" class="form-control" th:value="${holiday.h_salary}"/>
                    </div>
                </div>

                <div class="form-group"><label class="col-sm-2 control-label">请假时间：</label>
                    <div class="col-sm-10">
                        <input id="h_submit" readonly="readonly" name="h_submit" type="text" class="form-control" th:value="${holiday.h_submit}"/>
                    </div>
                </div>

                <div class="form-group"><label class="col-sm-2 control-label">审核状态：</label>
                    <div class="col-sm-10" th:switch="${holiday.h_statu}">
                        <input  th:case="0" readonly="readonly"  type="text" class="form-control"  th:value="审核中"/>
                        <input  th:case="1" readonly="readonly" type="text" class="form-control"  th:value="未通过"/>
                        <input  th:case="2" readonly="readonly"  type="text" class="form-control"  th:value="已通过"/>
                    </div>
                </div>
                <div class="form-group"><label class="col-sm-2 control-label">审核结果</label>
                    <div class="col-sm-10">
                        <input type="radio" name="h_statu"  value="1" />不通过
                        <input type="radio" name="h_statu"  value="2" />通过
                    </div>
                </div>



                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <div class="col-sm-4 col-sm-offset-2">
                        <button id="submitButton1" class="btn btn-primary" onclick="javascrtpt:window.location.href='checkHolidays'" type="button">&nbsp;&nbsp;&nbsp;&nbsp;返&nbsp;&nbsp;&nbsp;&nbsp;回&nbsp;&nbsp;&nbsp;&nbsp;</button>
                    </div>
                    <div class="col-sm-4 col-sm-offset-2">
                        <button id="submitButton" class="btn btn-primary" type="button">&nbsp;&nbsp;&nbsp;&nbsp;提&nbsp;&nbsp;&nbsp;&nbsp;交&nbsp;&nbsp;&nbsp;&nbsp;</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>




</body>

<script>
    //提交
    $("#submitButton").click(function(){
        $("#formTag").submit();
    });
</script>
<script th:inline="javascript">
    var msg=[[${msg}]];
    if (msg!=null){
        alert(msg);
        window.location.href='checkHolidays';
    }
</script>

</html>